#ifndef _TEXMGR_H
#define _TEXMGR_H

#include "BankMgr.h"

class CTexMgr
{
private:
	static CTexMgr __this;

	CBankMgr m_texBank;
	CBankMgr m_palBank;

	CTexMgr();
protected:
public:
	static CTexMgr* getInstance() {return &__this;}

	BOOL allocTex(u32 *addr, u32 *bank, u32 size);
	BOOL allocPal(u32 *addr, u32 *bank, u32 size);

	void freeTex(u32 addr, u32 bank, u32 size);
	void freePal(u32 addr, u32 bank, u32 size);
};

#endif //_TEXMGR_H